package cn.mafangui.hotel.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: kalpa
 * @date: 2022/4/3
 * @version: 1.0
 * Description: 活动
 */
@Data
public class Activity implements Serializable {
    private static final long serialVersionUID = -7695067798159045659L;

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("描述")
    private String detail;

    @ApiModelProperty("参加活动的限制")
    private String activityLimit;

    @ApiModelProperty("活动状态")
    private Integer status;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    private Date startDate;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    private Date endDate;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    private Date createDate;

    @ApiModelProperty("是否有效")
    private Integer active;

}
